package com.aos.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;

/**
 * 可配置属性配置类，类名格式为XXXProperties(只是建议，不强制)
 * 这边只负责new一个XXXProperties:XXXProperties xxx = new XXXProperties();[也可以是一个数组]
 * 配置文件中属性配置:aos.uaa.xxx.变量名;[数组变量名配置:aos.uaa.xxx[0].变量名]
 * @author xkz
 * @Date 9:52 2018/9/3
 */
@Data
@ConfigurationProperties(prefix = "aos.apms")
//@PropertySource("classpath:config/constant.properties")//制定配置文件
public class APMSProperties {

    private UserProperties user = new UserProperties();

    private ApplicationProperties application = new ApplicationProperties();

    private PermissionProperties permission = new PermissionProperties();

    private CommonProperties common = new CommonProperties();
}
